<%-- 
    Document   : FrameSendRequest
    Created on : Sep 1, 2013, 10:40:46 PM
    Author     : ChauAnh
--%>

<%@page import="java.util.Iterator"%>
<%@page import="java.util.Set"%>
<%@page import="java.util.HashMap"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">  
        <title>View profile</title>
    </head>
    <body>
        <%
            if (request.getSession().getAttribute("login") == null) {
                response.sendRedirect("index.jsp");
            } else {
                HashMap listRMCandidate = (HashMap) request.getSession().getAttribute("listRMCandidate");
                Set keyRMCandidate = listRMCandidate.keySet();
                Iterator itr = keyRMCandidate.iterator();
                while (itr.hasNext()) {
                    Object keyid = itr.next();
                    HashMap hm = (HashMap) listRMCandidate.get(keyid);
        %>

        <div id="framSendRequest">
            <table style="height: 200px; width: 394px; border-collapse: collapse;">
                <tr>                        
                    <td align="center" style="height: 200px; width: 200px; background-color: #A80037" class="text-nomarl-while">
                        <h4 style="margin-bottom: 30px; margin-top: 10px"><%=hm.get("first_name") + " " + hm.get("middle_name")%></h4> <br>
                        <h2 style="margin-bottom: 15px;"><%=hm.get("last_name")%></h2>
                        <input type="button" style="margin-top: 41px; margin-left: 100px" value="<fmt:message key="framesendrequest.seemore"/>" class="buttonSendRequest" onclick="window.location.href = 'CandidateProfileDetails?username=<%=hm.get("username")%>'"/>
                    </td>
                    <td rowspan="2" style="height: 200px; width: 194px">                           
                        <img src= 'avatar/<%=hm.get("avatar")%>' width='194px' height='200px' border='0' alt='User'/>                           
                    </td>
                </tr>                        
            </table>            
        </div>                   

        <%
                }
            }
        %>
    </body>
</html>
